package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.domain.entity.Category;

import java.util.List;
import java.util.Set;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> getAllCategoryByStatus(@Param("ids") Set<Integer> ids);

    Category getCategoryById(Integer id);

    List<Category> selectByName(Category category);


    List<Category> getCategories();
}
